Skip to content

Fix image builds that don't use --build-arg - #1936

Open
cybertron wants to merge 1 commit into
openshift-metal3:masterfrom
cybertron:fix-mco-build
Open

Fix image builds that don't use --build-arg#1936
cybertron wants to merge 1 commit into
openshift-metal3:masterfrom
cybertron:fix-mco-build

Conversation

@cybertron

Copy link
Copy Markdown
Contributor

As part of the shellcheck fixes, this variable was quoted. However, when the variable is empty this results in a bogus parameter being passed to podman build which caused it to fail.

This appears to have been designed so it could be concatenated, but the variable is reset each time through the loop so I don't think we actually need that. This splits the argument name from its value so we pass valid arguments even when the variable is empty. Passing --build-arg '' seems to work fine with the image build I tested.

As part of the shellcheck fixes, this variable was quoted. However,
when the variable is empty this results in a bogus parameter being
passed to podman build which caused it to fail.

This appears to have been designed so it could be concatenated, but
the variable is reset each time through the loop so I don't think
we actually need that. This splits the argument name from its value
so we pass valid arguments even when the variable is empty. Passing
--build-arg '' seems to work fine with the image build I tested.
@openshift-ci
openshift-ci Bot requested review from dtantsur and tdomnesc July 28, 2026 20:26
@tdomnesc

Copy link
Copy Markdown
Contributor

/lgtm
/retest

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Jul 29, 2026
@cybertron

Copy link
Copy Markdown
Contributor Author

/approve

Dual stack failed on something unrelated, and it's not clear to me that CI would even exercise this code path.

@openshift-ci

openshift-ci Bot commented Jul 31, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cybertron

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 31, 2026
@openshift-ci

openshift-ci Bot commented Jul 31, 2026

Copy link
Copy Markdown

@cybertron: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-metal-ipi-ovn-dualstack e2230e4 link false /test e2e-metal-ipi-ovn-dualstack
ci/prow/e2e-metal-ipi-ovn-ipv6 e2230e4 link unknown /test e2e-metal-ipi-ovn-ipv6

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants